package com.room.search.service.dto.user;

import javax.validation.constraints.NotNull;

/**
 * By   : ghd.bright
 * Time : 2022/1/26
 * Description: 注册信息DTO
 */
public class UserRegisterDTO {

    /**
     * 账号，手机号
     */
    @NotNull(message = "account")
    private String account;

    /**
     * 验证码
     */
    @NotNull(message = "code")
    private String code;

    /**
     * 密码
     */
    @NotNull(message = "password")
    private String password;

    /**
     * 七天免登录
     *
     * @return
     */
    private boolean rememberMe;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isRememberMe() {
        return rememberMe;
    }

    public UserRegisterDTO setRememberMe(boolean rememberMe) {
        this.rememberMe = rememberMe;
        return this;
    }

    @Override
    public String toString() {
        return "UserRegisterDTO{" +
            "account='" + account + '\'' +
            ", code='" + code + '\'' +
            ", password='" + password + '\'' +
            '}';
    }
}
